package com.proxy.static_proxy;

/**
 * 项目名称: java_algorithm
 * @ClassName DogStaticProxy
 * @Description
 */
public class DogStaticProxy implements IDog {

    private IDog iDog;

    public DogStaticProxy(IDog iDog) {
        this.iDog = iDog;
    }

    @Override
    public void eat() {
        System.out.println("eat begin");
        iDog.eat();
        System.out.println("eat end");
    }
}
